package com.spzx.product.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

@Data
 @Schema(description = "品牌商品分类")
public class CategoryBrand extends BaseEntity {
    @Schema(description = "商品分类Id")
    @NotEmpty
    private Long categoryId;

    @Schema(description = "商品品牌Id")
    @NotEmpty
    private Long brandId;

    @Schema(description = "分类名称")
    @TableField(exist = false)
    private String categoryName;

    @Schema(description = "品牌名称")
    @TableField(exist = false)
    private String brandName;

    @Schema(description = "品牌图标")
    @TableField(exist = false)
    private String logo;

    @Schema(description = "分类品牌的一二三级分类id")
    private List<Long> categoryIdList;

}
